package com.example.demo.service;

import com.example.demo.entity.Artical;
import com.example.demo.entity.ArticleVO;
import com.example.demo.entity.Shouye;
import com.example.demo.mapper.ListMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service
public class ServiceImpl implements ListService {
    @Autowired
    private ListMapper listMapper;

    @Override
    public List<Artical> list() {
        return null;
    }

    @Override
    public List<Artical> getlist() {
        List<Artical> getlist = listMapper.getlist();
        return getlist;
    }



    @Override
    public List<Artical> getpage(ArticleVO articleVO) {
        return listMapper.getpage(articleVO);
    }

    @Override
    public Integer getcount(ArticleVO articleVO) {
        return listMapper.getcount(articleVO);
    }

    @Override
    public Integer delete(Integer id) {
        return listMapper.delete(id);
    }

    @Override
    public Artical tanchu(Integer id) {
        return listMapper.tanchu(id);
    }

    @Override
    public int update(Artical artical) {
        return listMapper.update(artical);
    }

    @Override
    public int update1(Artical artical) {
        return listMapper.update1(artical);
    }


    @Override
    public int Bydelete(Integer[] ids) {
        return listMapper.Bydelete(ids);
    }

    @Override
    public Integer insert(Artical artical) {
        return listMapper.insert(artical);
    }

    @Override
    public List<Artical> search(Artical artical) {
        return listMapper.search(artical);
    }

    @Override
    public Artical login(Artical artical) {
        return listMapper.login(artical);
    }

    @Override
    public List<Artical> getpage1(ArticleVO articleVO) {
        return listMapper.getpage1(articleVO);
    }

    @Override
    public Integer getcount1(ArticleVO articleVO) {
        return listMapper.getcount1(articleVO);
    }

    @Override
    public int updateclose(Artical artical) {
        return listMapper.updateclose(artical);
    }

    @Override
    public int dianjiliang(Shouye shouye) {
        return listMapper.dianjiliang(shouye);
    }


}
